﻿Imports Runa.UI.Controls
Imports System.Linq
Imports System.Runtime.CompilerServices

Namespace Global.Runa.UI.Xaml

    Public Module XamlExtensions

        <Extension()>
        Public Function LoadFromXaml(ByVal [Me] As UIElementBase, ByVal xaml As XElement) As Boolean
            Return XamlReader.Load(xaml, [Me], [Me].Game)
        End Function

    End Module

End Namespace